import axiosserver from '../utils/request'

export function getArticle(params = {}) {
  return axiosserver({
    method: 'GET',
    url: '/article',
    params,
  })
}

export function getArticlePage(pno) {
  return axiosserver({
    method: 'GET',
    url: '/article/list?pno=' + pno,
  })
}

export function getArticleComment(aid) {
  return axiosserver({
    method: 'GET',
    url: '/article/comment/' + aid,
  })
}

export function addArticleComment(params) {
  return axiosserver({
    method: 'POST',
    url: '/article/comment/add',
    data: params,
  })
}
